import axios from "@/request"

const api_base_url = "http://127.0.0.1:10086"


// 用户登录
export function user_login(para){
    return axios({
        url: api_base_url+"/user/login",
        method:"POST",
        data: para
    })
}

// 用户注册
export function user_register(para){
    return axios({
        url: api_base_url+"/user/register",
        method: "POST",
        data:para
    })
}
// 获取用户信息
export function get_user_info(){
    return axios({
        url: api_base_url+"/user/info",
        method: "GET"
    })
}

// 获取错题
export function get_wrong_question_list(){
    return axios({
        url: api_base_url+"/user/wrong-question-list",
        method: "GET"
    })
}

// 获取考试记录数
export function get_exam_count(){
    return axios({
        url: api_base_url+"/user/exam-count",
        method: "GET"
    })
}
// 获取错题记录数
export function get_wrong_count(){
    return axios({
        url: api_base_url+"/user/wrong-count",
        method: "GET"
    })
}